package cn.llming.auth.service.impl;

import cn.llming.auth.domain.RoleMenu;
import cn.llming.auth.mapper.RoleMenuMapper;

import cn.llming.auth.service.IRoleMenuService;

import cn.llming.basic.service.impl.BaseServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class RoleMenuServiceImpl extends BaseServiceImpl<RoleMenu> implements IRoleMenuService {

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public List<RoleMenu> getRoleMenuTree() {
        return roleMenuMapper.getRoleMenuTree();
    }

    @Override
    public List<RoleMenu> getEmployeeByMenus(Long empId) {
        return roleMenuMapper.getEmployeeByMenus(empId);
    }
}
